<%
	String start=request.getParameter("start");
	String limit=request.getParameter("tempcount");
	try {
    int index = Integer.parseInt(start);
    int pageSize = Integer.parseInt(limit);
    int total=13;
    
    String columnModel="columnModel:[{header:\"billNo\",dataIndex:\"billNo\",width:\"180px\",align:\"left\"},"
			+"{header:\"warehouseName\",dataIndex:\"warehouseName\",width:\"160px\",align:\"center\"},"
			+"{header:\"outOrgName\",dataIndex:\"outOrgName\",width:\"120px\",align:\"center\"},"
			+"{header:\"totalAmt\",dataIndex:\"totalAmt\",align:\"center\"},"
			+"{header:\"materialSource\",dataIndex:\"materialSource\",width:\"80px\",align:\"center\"},"
			+"{header:\"voucherNo\",dataIndex:\"voucherNo\",width:\"80px\",align:\"center\"},"
			+"{header:\"busDate\",dataIndex:\"busDate\",width:\"10%\",align:\"right\"},"
			+"{header:\"billStatus\",dataIndex:\"billStatus\",align:\"center\"},"
			+"{header:\"remark\",dataIndex:\"remark\",align:\"center\"},"
			+"{header:\"datumsCount\",dataIndex:\"datumsCount\",width:\"80px\",align:\"center\"}]";
			String json = "{total:"+total+","+columnModel+",";
    String list="list:[";
    boolean b=false;
    for (int i = index; i < (pageSize + index) && i<=total; i++) {
    	if(b){
        list+=",";
        }
        list += "{billNo:'billNo_" + i + "',warehouseName:'warehouseName_" + i+ "',outOrgName:'outOrgName_" + i + "',totalAmt:'totalAmt_" + i 
        +"',materialSource:'materialSource_" + i + "',voucherNo:'voucherNo_" + i+ "',busDate:'busDate_" + i
        +"',billStatus:'billStatus_" + i + "',remark:'remark_" + i+ "',datumsCount:'datumsCount_" + i+ "'}";
        b=true;
        
    }
    list += "]}";
    json+=list;
    response.getWriter().write(json);
	} catch(Exception ex) {
	}
	
%>